﻿using Microsoft.Extensions.DependencyInjection;

namespace RoslynProxy.Core
{
    public static class ServiceCollectionExtensions
    {
        public static IServiceCollection AddProxyServices<T>(this IServiceCollection services) where T : RoslynProxyServiceCollection, new()
        {
            var service = new T();
            service.RegisterProxyServices(services);
            return services;
        }
    }
}
